From SQLi to RCE Exploiting LangGraph's Checkpointer#2361
Open
carlospolop wants to merge 1 commit into
Open
Conversation
Collaborator
Author
🔗 Additional ContextOriginal Blog Post: https://research.checkpoint.com/2026/from-sqli-to-rce-exploiting-langgraphs-checkpointer Content Categories: Based on the analysis, this content was categorized under "AI Security / AI Models RCE, with cross-references from Pentesting Web > SQL Injection and Pentesting Web > Deserialization". Repository Maintenance:
Review Notes:
Bot Version: HackTricks News Bot v1.0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🤖 Automated Content Update
This PR was automatically generated by the HackTricks News Bot based on a technical blog post.
📝 Source Information
🎯 Content Summary
Check Point Research disclosed a critical LangGraph persistence-layer attack chain that turns SQL injection into remote code execution. LangGraph is an open-source framework for building stateful, multi-agent AI systems with built-in persistence, reportedly with more than 50 million monthly downloads according to PyPI statistics. Its persistence layer is implemented through checkpointers, which store execution state at each step so an AI agent c...
🔧 Technical Details
Filter-key SQL injection through JSON path construction: when an application accepts a dictionary from users and uses dictionary keys to build SQL JSON paths, parameterizing only the values is insufficient. The dangerous pattern is
json_extract(CAST(metadata AS TEXT), '$.{query_key}') {operator}, wherequery_keyis attacker-controlled. A single quote can escape the JSON path string and inject SQL. The generalized lesson is to validate structural query components, including JSON paths, column names, operators,LIMIT, and TTL clauses, against strict allowlists or encode them safely; they cannot be protected by value binding alone.Turning SQL injection into deserialization with injected result rows: SQL injection can be used to control downstream application behavior, not only read database data. If query results are later passed to a parser, deserializer, template renderer, file writer, or command sink, an...
🤖 Agent Actions
Using repo inspection to find the best existing page, likely under AI plus a page that already covers unsafe deserialization or agent attack surfaces.
Done — I updated
src/AI/AI-Models-RCE.md.Added:
UNION SELECTfake-row deserialization## ReferencesI kept everything in a single file as requested.
This PR was automatically created by the HackTricks Feed Bot. Please review the changes carefully before merging.